home *** CD-ROM | disk | FTP | other *** search
/ Programming an RTS Game with Direct3D / Programming an RTS Game with Direct3D.iso / Examples / Chapter 12 / Example 12.5 / skybox.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-06-30  |  552 b   |  26 lines

  1. #ifndef RTS_SKYBOX
  2. #define RTS_SKYBOX
  3.  
  4. #include <windows.h>
  5. #include <d3dx9.h>
  6. #include <vector>
  7. #include "debug.h"
  8. #include "terrain.h"
  9. #include "camera.h"
  10.  
  11. class SKYBOX
  12. {
  13.     public:
  14.         SKYBOX(IDirect3DDevice9 *Dev, char fileName[], float size);
  15.         ~SKYBOX();
  16.         void Render(D3DXVECTOR3 cameraPos);
  17.         void GenerateEnvironmentMap(D3DXVECTOR3 position, bool saveToFile, TERRAIN &terrain);
  18.  
  19.     private:
  20.         IDirect3DDevice9 *m_pDevice;
  21.         std::vector<IDirect3DTexture9*> m_textures;
  22.         ID3DXMesh *m_pMesh;
  23.         D3DMATERIAL9 m_white;
  24. };
  25.  
  26. #endif